<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
Route::get('type','DemoController@type')->name('type');
Route::get('shop','DemoController@shop')->name('shop');
Route::get('shop','DemoController@shop');
Route::get('type','DemoController@type');
Route::get('product','DemoController@product');
Route::get('search','DemoController@search');
Route::get('cost','DemoController@cost');
Route::get('img','DemoController@img');
Route::get('shopTail','DemoController@shopTail');
Route::get('goBuy','DemoController@goBuy');
Route::post('addorder','DemoController@addorder');
Route::get('buycar','DemoController@buycar');
Route::get('buy','DemoController@buy');

Route::get('Admin','AdminController@Admin');
Route::post('AdminLogin','AdminController@AdminLogin')->name('AdminLogin');
Route::get('AShow','AdminController@AShow')->name('AShow');
Route::get('Storage','AdminController@Storage')->name('Storage');
Route::post('GoodsAdd','AdminController@GoodsAdd')->name('GoodsAdd');
Route::get('ACate','AdminController@ACate')->name('ACate');

